﻿<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>分配</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="../Layui/css/layui.css" media="all">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
    <form class="layui-form" action="">
       
       
        <div class="layui-col-md12" style="margin-bottom:10px;">
            <div class="layui-card">
                <div class="layui-card-header">
                    <div class="layui-form-item,layui-text" style="margin-top:10px;color:#FFB800;">
                        <label class="layui-form-label" >时间设定：</label>
                        <div class="layui-input-inline">
                            <input type="text" name="title" lay-verify="title" autocomplete="off" placeholder="48" class="layui-input" value="48">
                        </div>
                        小时内未领取重新进入待分配
                    </div>
                </div>
                <div class="layui-card-body">
                    <div class="layui-block">
                        <ul>
                        <li class="layui-bg-green" style="height:37px;line-height:37px;margin-right:10px;padding-left:5px;padding-right:5px; float:left">待分配数量<label id="dfpsl"></label></li>
                        <li  class="layui-bg-blue" style="height:37px;line-height:37px;margin-right:10px;padding-left:5px;padding-right:5px; float:left"> 已分配数量<label id="yfpsl"></label> </li>
                        <li style="height:30px;line-height:30px;margin-right:10px;padding-left:5px;padding-right:5px; float:left">        
                            <button data-method="offset" data-type="test19" class="layui-btn layui-btn-normal ">平均分配</button>
                        
                            <button data-method="offset" data-type="test20" class="layui-btn layui-btn-normal ">确定</button>  
                            
                            <button data-method="offset" data-type="test21" class="layui-btn layui-btn-normal layui-bg-orange" >取消</button>
                            </li> 
                        </ul>


                    </div>
                </div>
            </div>
        </div>
        <div class="layui-card-body">
            <table class="layui-table" lay-data="{url:'/test/table/demo1.json', id:'test3'}" lay-filter="test3">
                <thead>
                    <tr>
                        <th lay-data="{type:'checkbox'}">ID</th>
                        <th lay-data="{field:'id', width:300, sort: true}">顾问</th>
                        <th lay-data="{field:'username', width:120, sort: true, edit: 'text'}">分配数量</th>

                    </tr>
                </thead>
            </table>
        </div>
    </form>
    <script src="../Layui/layui.js"></script>

    <script>
        layui.config({
            base: '../Layui/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use('index');
    </script>
    <script>
        layui.use('table', function () {
            var table = layui.table;
            //监听工具条
            table.on('tool(demo)', function (obj) {
                var data = obj.data;

            });

        });
    </script>


</body>
</html>